program Kos2;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  x0, y0, x1, y1, dR, sR, dx, dy, dxy, R1, R2 : integer;
  a1, b1, c1, a2, b2, c2, a3, b3, c3, a4, b4, c4, D1, D2 : real;

begin
  readln(x0);
  readln(y0);
  readln(R1);
  readln(x1);
  readln(y1);
  readln(R2);

  dR:=R2-R1;
  sR:=R2+R1;
  dy:=y1-y0;
  dx:=x1-x0;
  dxy:=dy*dy+dx*dx;
  D1:=dx*( sqrt((dxy-dR*dR)) );
  D2:=dx*( sqrt((dxy-sR*sR)) );

  b1:=(dR*dy+D1)/dxy;
  b2:=(dR*dy-D1)/dxy;
  a1:=(dR-b2*dy)/dx;
  a2:=(dR-b1*dy)/dx;
  c1:=-(a1*x0+b2*y0)+R1;
  c2:=-(a2*x0+b1*y0)-R1;

  b3:=(sR*dy+D2)/dxy;
  b4:=(sR*dy-D2)/dxy;
  a3:=(sR-b4*dy)/dx;
  a4:=(sR-b3*dy)/dx;
  c3:=-(a3*x0+b3*y0)-R1;
  c4:=-(a4*x0+b4*y0)+R1;

  writeln;

  writeln('a1=',a1);
  writeln('b1=',b2);
  writeln('c1=',c1);

  writeln;

  writeln('a2=',a2);
  writeln('b2=',b1);
  writeln('c2=',c2);

  writeln;

  writeln('a3=',a3);
  writeln('b3=',b4);
  writeln('c3=',c3);

  writeln;

  writeln('a4=',a4);
  writeln('b4=',b3);
  writeln('c4=',c4);

  readln;
end.
 